package com.crazy.jiakoulachang.exception;

public enum ExceptionEnum {


    //异常枚举
    PAGE_FAIL(10001,"分页查询失败"),
    PARAMS_ERROR(10002,"参数错误" ),
    NOT_LOGIN_ERROR(10003,"用户未登录" ),
    NO_AUTH_ERROR(10004,"你无权限" ),


    SYSTEM_ERROR(20000,"系统异常");
    /**
     * 异常码
     * 异常信息
     */
    private Integer status;
    private String msg;

    /*生成构造方法*/
    ExceptionEnum(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    //生成get、set方法
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
